class CreateFacturas < ActiveRecord::Migration
  def self.up
    create_table :facturas do |t|
      t.column  :mayorista_id,  :integer
      t.column  :fecha_factura,  :date
      t.column  :referencia,  :string
      t.column  :created_at,  :datetime
      t.column  :updated_at,  :datetime
      
    end
  end

  def self.down
    drop_table :facturas
  end
end
